﻿using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Services;
using BiliBiliDown.BLL;
using BiliBiliDown.Model;
using Newtonsoft.Json;

namespace BiliBiliDown.Controllers
{
    public class WelComeController : Controller
    {
        // GET: WelCome
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Content()
        {
            string content = "";
            string textav = "";
            textav = Request["textav"].Trim();
            int i = BLL.Dispose.JudgeInt(textav);
            if (i == -1)
            {
            }
            else
            {
                //正式联网
                content = BLL.Dispose.HttpGet(i);
                var modelinfo = JsonConvert.DeserializeObject<MovieInfo>(content);
                return View(modelinfo);
            }
            return View("");
        }
    }
}